package com.neusoft.view;

import com.neusoft.model.User;
import com.neusoft.service.UserService;
import com.neusoft.service.impl.UserServiceImpl;

public class TestService {
    public static void main(String[] args) {
        UserService userService = new UserServiceImpl();
        User user = userService.findUserById(7);
        System.out.println(user.getUsername());
//        List<User> list = userService.getUsers();
//        for (User user : list) {
//            System.out.println(user.getUsername());
//        }
//        User user = userService.isValidateLogin("admin","123456");
//        System.out.println(user.getUsername());
        //        User user = new User();
//        user.setUsername("admin123");
//        user.setPassword("123456");
//        boolean isRight = userService.saveUser(user);
//        System.out.println(isRight);

    }
}
